package com.yanhua.server;

import com.yanhua.transaction.annotation.YhTransactional;
import com.yanhua.transaction.common.util.TransactionConst;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DemoService {

    @Autowired
    private DemoDao demoDao;


    @YhTransactional(TransactionConst.TransactionState.end)
    @Transactional
    public void test() {
        demoDao.insert("server2");
    }
}
